package com.xingkeduo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description TODO
 * @Date 2019/4/18 19:22
 * @Created 情绪十分不稳定的Shadow
 */

@FeignClient(value = "business-operation")
public interface OperationService {

    //根据店铺ID查询 店铺库存Max颗粒时间 and 店铺营业时间
    @GetMapping("/api/op/shops/grain/{urlParam}")
    String grain(@PathVariable("urlParam") String urlParam);

    @GetMapping("/api/op/shops/getShopsList")
    String getShopsList(@RequestParam("status") Long status);

    @GetMapping("/api/op/shops/getStoreSkuInfoListByStoreId")
    String getStoreSkuInfoListByStoreId(@RequestParam("storeId") Long storeId);

    @GetMapping("/api/op/shopsServprod/getShopsServprodList")
    String getShopsServprodList(@RequestParam("shopsId") Long shopsId);

    /** 根据二线用户ID获取列表**/
    @GetMapping("/cms/op/manager/lists")
    String getManagerList(@RequestParam("ids") List<Long> ids);

    /**
     * 根据店铺ID获取店铺详情
     * @param id
     * @return
     */
    @GetMapping("/cms/op/shops/{urlParam}")
    String getShopInfo(@PathVariable("urlParam") String urlParam);

    @GetMapping("/cms/op/screenPrice/getScreenPriceInfo")
    String getScreenPriceInfo(@RequestParam("shopId") Long shopId);
}
